package com.cssl.serice.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cssl.dao.SysDeptMapper;
import com.cssl.pojo.SysDept;
import com.cssl.pojo.SysStaff;
import com.cssl.serice.SysDeptSerice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysDeptimpl extends ServiceImpl<SysDeptMapper, SysDept> implements SysDeptSerice {
    @Resource
    private  SysDeptMapper sysDeptMapper;

    @Override
    public List<SysDept> dgcy() {
        return sysDeptMapper.dgcy();
    }

    @Override
    public IPage<SysDept> select(IPage<SysDept> page) {
        return sysDeptMapper.select(page);
    }

    @Override
    public int selectDept(@Param("dept_id") List<Integer> dept_id) {
        return sysDeptMapper.selectDept(dept_id);
    }

    @Override
    public List<SysDept> dgcyss(int parent_id) {
        return sysDeptMapper.dgcyss(parent_id);
    }

    @Override
    public List<SysDept> ll(Object id) {
        return sysDeptMapper.ll(id);
    }
}
